import Vue from 'vue'
import Router from 'vue-router'
// 导入组件
import vueChart from '../views/vueChart'
import index from '../views/index'
import login from '../views/login'

Vue.use(Router)

export default new Router({
    mode:'history',
    routes:[
        {
            path:'/',
            name:'vueChart',
            component:vueChart
        },
        {
            path:'/vueChart',
            name:'vueChart',
            component:vueChart
        },
        {
            path:'/index',
            name:'index',
            component:index
        },
        {
            path:'/login',
            name:'login',
            component:login
        }
    ]
})
